﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace ERPStore.Web
{
	public abstract class BaseViewPage : WebViewPage
	{
		public virtual new ERPStore.Models.UserPrincipal User
		{
			get { return base.User as ERPStore.Models.UserPrincipal; }
		}

		public virtual ERPStore.Settings.WebSiteSettings SiteSettings
		{
			get
			{
				return ERPStore.GlobalConfiguration.Configuration.Settings;
			}
		}
	}

	public abstract class BaseViewPage<TModel> : WebViewPage<TModel>
	{
		public virtual new ERPStore.Models.UserPrincipal User
		{
			get { return base.User as ERPStore.Models.UserPrincipal; }
		}

		public virtual ERPStore.Settings.WebSiteSettings SiteSettings
		{
			get
			{
				return ERPStore.GlobalConfiguration.Configuration.Settings;
			}
		}

	}
}
